#!/bin/sh

PID_FILE=/ouer/service/run/crrm-service.pid
LOG_FILE=/ouer/logs/start.log


nohup java -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=$1 -Dcom.sun.management.jmxremote.port=8567 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Duser.timezone=Asia/Shanghai -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -server -Xmx@jvm.Xmx@ -Xms@jvm.Xms@ -Xmn@jvm.Xmn@ -XX:MetaspaceSize=@jvm.permsize@ -XX:MaxMetaspaceSize=@jvm.maxpermsize@ -Xss1m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=16m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:SurvivorRatio=16 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/ouer/logs/dump -cp "../lib/*" -jar ../assist.jar &

sleep 3s
echo 'assist-service start!'
ps -ef | grep assist | grep -v grep | awk '{print $2}' > ${PID_FILE}